<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>宝钢彩涂板管理后台</title>
	<link rel="stylesheet" href="/static/css/normalize.css">
	<link rel="stylesheet" href="/static/css/add.css">
	<link rel="stylesheet" href="/static/css/color-style.css">
	<link rel="stylesheet" href="/static/css/font-awesome.min.css">
	<script type="text/javascript" src="/js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="/js/ueditor.config.js"></script>
	<script type="text/javascript" src="/js/ueditor.all.min.js"></script>
	<script type="text/javascript" src="/js/zh-cn.js"></script>
	<script type="text/javascript" src="/js/common.js"></script>
</head>
<body>
<div class="form-box">
	<div class="top-bar">
		<h5 class="nav-title">编辑产品</h5>
		<div class="button-container">
			<a href="/admin/goods/lst" class='button -green center' style="width: 60px; height: 30px;">返回</a>
		</div>
	</div>
	<form action="/admin/goods/edit" method="POST" enctype="multipart/form-data">
		<input type="hidden" name="id" value="">
		<div class="case-admin-left">
			<input value="{$case.title}" type="text" class="form-control" name="title" id="title" placeholder="在此输入文章标题" value="">
			<br>
            <div class="editor-box">
				<input type="hidden" name="id" value="{$case.id}">
                <label>生产工艺</label>
				<script id="md-editor1" type="text/plain" style="height: 300px; margin-top: 10px; width: 100%;"><?php echo $case['content']; ?></script>
			</div>
            <br>
            <div class="editor-box">
                <label>性能</label>
				<script id="md-editor2" type="text/plain" style="height: 300px; margin-top: 10px; width: 100%;"><?php echo $case['variety']; ?></script>
			</div>
            <br>
            <div class="editor-box">
                <label>品种</label>
				<script id="md-editor3" type="text/plain" style="height: 300px; margin-top: 10px; width: 100%;"><?php echo $case['performance']; ?></script>
			</div>
		</div>
		<div class="case-admin-right">
			<div class="panel">
    			<div class="panel-heading">
    				<h3 class="panel-title">缩略图</h3>
    			</div>
    			<div class="panel-body">
    				<div class="form-group">
						<div id="photo1">
							<input type="file" id="imagies" onClick="uploadPhoto('#imagies','photo1')" / style="margin-bottom: 5px;">
							<img src="{$case.imagies}" class="img-case-dp" style="width: 120px; height: 85px;">
							<input type="hidden" name="imagies" value="{$case.imagies}">
							<p style="color: red; font-size: 12px; margin-top: 5px;">需等待大约5秒钟！</p>
						</div>
    				</div>
    			</div>
    		</div>
			<div class="panel">
				<div class="panel-heading">
					<h3 class="panel-title">发布选项</h3>
				</div>
				<div class="panel-body">
					<div class="form-group">
						<div class="button-container">
							<button type="submit" class="button -blue center" style="width: 100px;">确认</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</form>
</div>
</body>
</html>
<script>
	UE.getEditor('md-editor1', {
		textarea:'content'
	})
	UE.getEditor('md-editor2', {
		textarea:'variety'
	})
	UE.getEditor('md-editor3', {
		textarea:'performance'
	})
</script>
</html>